<header class="scheduled-event">
  <nz-tabset [(nzSelectedIndex)]="index">

    <nz-tab [nzDisabled]="index>1 && isEdit" [nzTitle]="'TrafficManagement.ScheduledEvent.Incident' | translate">
      <itmp-ir-record-list [accessButton]='accessButton' [eventData]="data"
        (changeTabPage)="tabChange($event)" (isIrSelected)="irSelected($event)"></itmp-ir-record-list>
    </nz-tab>

    <nz-tab [nzDisabled]="index>1 && isEdit" [nzTitle]="'TrafficManagement.ScheduledEvent.HistoryIncident' | translate">
      <itmp-hist-scheduled-event [accessButton]='accessButton' [zoneList] = 'zoneList'>
      </itmp-hist-scheduled-event>
    </nz-tab>

    <nz-tab [nzTitle]="'TrafficManagement.ScheduledEvent.IrInfoDetail' | translate" (nzClick)="clearDetail()"
      *ngIf='isIRclicked'>
      <itmp-ir-info-details [accessButton]='accessButton' (changeTabPage)="tabChange($event)"
        (cancelEdit)="cancelEdit($event)" (clickEdit)="clickEdit($event)"></itmp-ir-info-details>
    </nz-tab>
    
  </nz-tabset>
</header>